﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Hangout.Web;
using Hangout.Web.Core.Accounts;

namespace Hangout.Services.Core.Account
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "AccountService" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select AccountService.svc or AccountService.svc.cs at the Solution Explorer and start debugging.
    public class AccountService : IAccountService
    {

        Web.Services.Account.Account wrapper = new Web.Services.Account.Account();

        public Web.Services.Objects.UserData RegisterUser(string accessToken)
        {
            return wrapper.RegisterUser(accessToken);
        }
        public void UpdateUserData(Web.Services.Objects.UserData userData, string accessToken)
        {
            wrapper.UpdateUserData(userData, accessToken);
        }

        public Web.Services.Objects.UserProfile GetUserProfile(int userId, string accesstoken)
        {
            return wrapper.GetUserProfile(userId, accesstoken);
        }
    }
}
